:root {
  --picker-width: 240px;
  --picker-height: calc(var(--picker-width) * 1.6);
  --head-height: calc(var(--picker-height) * 0.08);
  --strip-width: calc(var(--picker-height) / 1);
  --color: #ff0000;
}

.color-picker {
  width: var(--picker-width);
  background-color: #252525;
  border: 2px solid #575757;
  display: flex;
  flex-direction: column;
  user-select: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding-bottom: 0.2rem;
  z-index: 100;
}

.picker-head {
  height: var(--head-height);
  background-image: url();
  background-size: 16px 16px;
  image-rendering: pixelated;
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: #fff;
}

.picker-head-close {
  font-size: calc(var(--picker-width) / 12);
  cursor: pointer;
}

.brightness-icon {
  width: calc(var(--head-height) / 2);
  height: calc(var(--head-height) / 2);
  border: 2px solid #000;
  border-radius: 50%;
  background: linear-gradient(to right, #000 0%, #000 50%, #fff 50%, #fff 100%);
}

.color-string {
  cursor: pointer;
  font-size: calc(var(--head-height) * 0.4);
  min-width: calc(var(--head-height)* 5);
}

.picker-body {
  display: flex;
  gap: 5px;
  padding: calc(var(--picker-width) / 40);
  flex-direction: column;
}

.saturation-box {
  height: calc(var(--picker-width) * 1);
  position: relative;
}

.saturation-canvas {
  width: 100%;
  height: 100%;
  background-color: skyblue;
}

.saturation-picker {
  width: calc(var(--picker-width) / 30);
  height: calc(var(--picker-width) / 30);
  top: 0;
  left: 100%;
  border: 2px solid #fff;
  border-radius: 100%;
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.8);
  position: absolute;
  transform: translate(-50%, -50%);
}

.strips {
  display: flex;
  gap: 15px;
  width: 100%;
  height: calc(var(--head-height) *1.15);
  flex-direction: column;
  margin-top: 0.5rem;
}

.strip {
  width: var(--strip-width / 2.5);
  height: 20px;
  cursor: grab;
  position: relative;
  border-radius: calc(var(--head-height) *1.15);
}

.strip.alpha {
  background-image: url();
  background-size: 16px 16px;
  image-rendering: pixelated;
}

.strip.alpha::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  border-radius: calc(var(--head-height) *1.15);
  background: linear-gradient(to right, var(--color) 0%, transparent 100%);
}

.strip.hue {
  background: linear-gradient(to right,
      #ff0000 0%,
      #ffff00 17%,
      #00ff00 33%,
      #00ffff 50%,
      #0000ff 67%,
      #ff00ff 83%,
      #ff0000 100%);
}

.strip .slider {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 0px;
  transform: translateY(-50%);
  height: calc(var(--picker-width) / 20);
  width: calc(var(--picker-width) / 20);
  border-radius: 100%;
  border: 2px solid rgba(255, 255, 255, 1);
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.8);
  background-color: #ff0000;
}


.picker-footer {
  width: 100%;
  color: #bbb;
  padding: 0 8px 8px 8px;
}

.picker-footer-label {
  font-size: 12px;
  display: inline-block;
  padding-bottom: 8px;
}

.picker-footer-body {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: calc(var(--picker-width) / 70);
}

.picker-footer-block {
  display: inline-block;
  width: calc(var(--picker-width) / 12);
  height: calc(var(--picker-width) / 12);
  border-radius: 2px;
  cursor: pointer;
}